import Layout from '@/layout'

const purchaseRouter = {
  path: '/purchase',
  component: Layout,
  redirect: 'noRedirect',
  name: 'purchase',
  meta: {
    title: '采购管理',
    icon: 'component'
  },
  children: [
    {
      path: 'apply',
      component: () => import('@/views/purchase/apply/index'),
      name: 'apply',
      meta: {title: '采购申请列表'}
    },
    {
      path: 'saveapply',
      component: () => import('@/views/purchase/apply/SaveOrDetail'),
      name: 'saveapply',
      hidden: true,
      meta: {title: '新增采购申请列表'}
    }
  ]
}

export default purchaseRouter
